package testSpring;

import com.util.HelloSpring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.junit.Test;
public class test1 {
    @Test
    public void h(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");

        HelloSpring helloSpring=(HelloSpring)context.getBean("helloSpring");

        helloSpring.print();
    }

}
